Skip to content

Avoid parsing // as comment when inside string - #555

Merged
thomasp85 merged 3 commits into
mainfrom
comment-inside-strings
Sep 22, 2026
Merged

thomasp85 merged 3 commits into
mainfrom
comment-inside-strings

Conversation

@thomasp85

Copy link
Copy Markdown
Collaborator

Fixes a bug when e.g. including urls inside labels etc where the // in http:// would be interpreted as starting a comment and swallow the rest of the line

@thomasp85
thomasp85 requested a review from teunbrand September 21, 2026 11:44

@teunbrand teunbrand left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I don't think we have a pre-existing corpus test for comments, and maybe we ought to have one

@thomasp85
thomasp85 merged commit 983e38e into main Sep 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants